home *** CD-ROM | disk | FTP | other *** search
- Short: Turbo list command replacement
- Author: g.sanderson@ais.gu.edu.au
- Type: util/shell
-
- TurboList is a command similar to the standard list command supplied with
- AmigaDOS.
-
-
- The normal 'list' command, lists files like this:
-
- etherpeek 2369 ---arwed 04-Jan-95 22:21:34
- alien.iff 1314114 ----rwed 07-Jan-95 01:31:08
- desert.rat.toxic.article.gz 3684 ----rwed 05-Apr-95 17:24:34
- ultoa020.o 444 ----rwed 28-Mar-95 19:11:11
- ftphunt.gz 13768 ---arwed 04-Jan-95 14:27:41
- mui23usr.LZX 504572 ----rwed 26-Mar-95 19:21:54
- electric.bullet 1416 ---arwed 04-Jan-95 22:16:54
- ar311.lha 95557 ----rwed Today 02:44:23
- replacement.functions 1029 ----rwed 11-Mar-93 23:20:17
- 9 files - 3796 blocks used
-
-
- TurboList lists them like this (similar to unix ls):
-
- ---arwed 04-Jan 22:21 2.3K etherpeek
- ----rwed 07-Jan 01:31 1.3M alien.iff
- ----rwed 05-Apr 17:24 3.6K desert.rat.toxic.article.gz
- ----rwed 28-Mar 19:11 444b ultoa020.o
- ---arwed 04-Jan 14:27 13K ftphunt.gz
- ----rwed 26-Mar 19:21 493K mui23usr.LZX
- ---arwed 04-Jan 22:16 1.4K electric.bullet
- ----rwed Tod 02:44:23 93K ar311.lha
- ----rwed 11-Mar-93 1K replacement.functions
- TOTAL: 9 files [1.8M] and 0 dirs [1.9M used, 1M free]
-
-
- As you can see, long filenames do not stuffup the formatting. Additionally,
- where possible, file sizes are approximated to their nearest multiplier (ie.
- Kilobytes, Megabytes or Gigabytes), which is much easier to read. This
- behaviour can be switched off.
-
- The date/time output is also different - if the file was created on the day
- you are listing it, it will print out "Tod hh:mm:ss", where Tod = Today,
- hh = hours, mm = minutes, ss = seconds. If the file was created within 6
- months of Today, the day of the month and the month will be printed, along
- with hh:mm. If the file is older than 6 months, the full date, but no time,
- is printed. This unix-like behaviour can be switched off and the full date
- printed without any conditions.
-
- Additionally, the file sizes are added up and listed at the end (the [1.8M]
- in above example). The actual space taken up by the listed files is also
- printed (ie. 1.9M used) - this is due to the amount of blocks being used
- for a file, and blocks have constant sizes (usually 512 bytes on FFS), hence
- a file which takes up 444 bytes actually takes up 2 blocks, 1 * 512 for the
- file, and 1 * 512 for the directory entry (these values all depend on the
- file system used). The amount of free space (ie. 1M free) on the device is
- also printed.
-
- Files which have the hidden ('h') protection bit enabled will be ignored and
- not taken into account when counting sizes/space taken up. This can be
- switched off.
-
-
- - Can be upto 30% faster than the normal 'list' command
- - Long filenames fit without stuffing up the display
- - Approximates the file size so it can be read easily (can be turned off)
- - similar to unix-ls date printing behaviour
- - doesn't display hidden files (with the h bit) (can be turned off)
- - handles patterns (ie. stuff like foobar.#? etc)
- - listing according to dates (since/upto date limitations)
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 4396 2854 35.0% 03-Jun-95 20:50:24 tl.68000
- 4648 2991 35.6% 03-Jun-95 20:50:30 tl.68020
- 11656 5090 56.3% 03-Jun-95 20:58:34 tl.doc
- -------- ------- ----- --------- --------
- 20700 10935 47.1% 03-Jun-95 14:24:14 3 files
-